﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HttpHelper
{
    public enum EContentType
    {
        /// <summary>
        /// application/x-www-form-urlencoded
        /// 浏览器的原生 form
        /// </summary>
        ApplicationForm = 0,
        /// <summary>
        /// text/xml
        /// XML 作为编码方式的远程调用
        /// </summary>
        TextXml = 1,
        /// <summary>
        /// application/json
        /// 提交 JSON 字符串
        /// </summary>
        ApplicationJson = 2,
        /// <summary>
        /// multipart/form-data
        /// 使用表单上传文件时，必须让 form 的 Content-Type 等于这个值
        /// </summary>
        MultipartForm = 3,
        /// <summary>
        /// 自己指定提交方式
        /// 需手动设置HttpMethods.ContentType=XXX;
        /// </summary>
        Custom = 4,
        /// <summary>
        /// application/x-www-form-urlencoded; charset=UTF-8
        /// 次级Form
        /// </summary>
        ApplicationFromCode = 5

    }
}
